package hxy.scan.server;

public class Animal {

    public void eat(String food) {
        System.out.println(food);
    }

    public static void main(String[] args) {
        Animal cat = new Animal();
        Animal blackCat = new Animal();
        cat.eat("鱼");
        blackCat.eat("老鼠");



        Animal dog = new Animal();
        dog.eat("狗粮");

        Animal fish = new Animal();
        fish.eat("鱼食");
        Animal cow = new Animal();
        cow.eat("嫩草");

    }
}
